import React, { Component } from 'react';
import Title from './TitleStyle.js'

class TitleBar extends Component {
    constructor(props) {
        super(props);
        this.state = { 
            
         };
    }
    render() {
        return (
            <Title>
                {this.props.backFlag && <i className="fa fa-angle-left"></i>}
                {this.props.titleFlag && <span className="title">{this.props.title_cont}</span>}
                {this.props.settingFlag && <span className="setting">{this.props.setting_cont}</span>}
                {this.props.searchFlag && <span className="search fa fa-search"></span>}
                {this.props.moreFlag && <span className="more fa fa-ellipsis-h"></span>}
            </Title>
        );
    }
}

export default TitleBar;